Port IMAGE - DEFAULT

Default port for interaction with GenICam cameras

Stimulation

此端口不具备激励能力。

Specifics

The port supports the setting of some standard properties, such as image size, frame rate, pixel format, etc. For more complex settings, such as triggers, ROI, etc., the camera manufacturer’s software should be used, and the specific settings should be saved in a UserSet, which is loaded when the configuration is started.

Supported Pixel Formats

The port supports the following pixel formats:

  • Mono8, Mono10, Mono12, Mono16

  • RGB8, RGB10, RGB12, RGB16

  • BGR8, BGR10, BGR12, BGR16

  • RGBA8, RGBA10, RGBA12, RGBA16

  • BGRA8, BGRA10, BGRA12, BGRA16

  • BayerRG8, BayerRG10, BayerRG12, BayerRG16

  • BayerGR8, BayerGR10, BayerGR12, BayerGR16

  • BayerBG8, BayerBG10, BayerBG12, BayerBG16

  • BayerGB8, BayerGB10, BayerGB12, BayerGB16

The bayer formats are automatically converted to the BGR8 format.

Name

在以下情况下可用

默认值

有效值

Type

Description

Camera settings

Camera

Camera settings

[ONLINE]

string

The name, model and serial number of the available cameras are listed. The selected camera is identified by its serial number when the port is started.

User set

Camera settings

<manual>

[ONLINE]

string

For advanced camera configurations, it is recommended to set the properties in the camera software, save them in a user set on the camera. You can load the user set when starting the configuration. For simple setups, you can configure basic properties such as resolution and fps manually by selecting “<manual>”.

Pixel format

Camera settings » User set: ‘<manual>’

[ONLINE]

string

A list of the camera’s supported pixel formats filtered by formats that are supported by ecu.test.

Width

Camera settings » User set: ‘<manual>’

640

int

Width of the camera frame.

Height

Camera settings » User set: ‘<manual>’

480

int

Height of the camera frame.

Frame rate

Camera settings » User set: ‘<manual>’

30

int

The desired frame rate for capturing

Live preview

☐

bool

在配置的网络端口上流式传输实时预览。可通过工具主机的 IP 地址和配置的端口访问实时流,例如本地工具连接:http://127.0.0.1:<port>

打开预览窗口

实时预览

☑

bool

加载配置时打开预览窗口。该窗口以直播流形式显示图像源的当前输出,并且在测试配置激活期间始终保持打开。

Port

实时预览

‘<auto>’

string

用于实时流的网络端口。如果为多个视频源启用实时流,则每个实时流都需要一个唯一的端口。如果将该值设为 <auto>,系统将分配一个空闲的网络端口。

Show text overlay in video recordings

☐

bool

在视频 Recording 的左下角添加格式为 “timestamp package name” 的文本叠加。

显示二进制时间戳

☐

bool

摄像头的当前时间戳(纳秒)存储于 64 位无符号整数中,并写入图像帧左上角的前 64 个像素。

显示人类可读的时间戳

☐

bool

为视频帧添加人类可读的时间戳。位置和格式均可配置。

Timestamp format

Show human-readable timestamp

‘%Y-%m-%d %H:%M:%S.%f’

string

时间戳的格式遵循 Python 的 datetime 格式化方式。例如,“%Y-%m-%d %H:%M:%S.%f” 会生成类似 “2023-01-31 13:45:30.123456” 的时间戳。

Position X

Show human-readable timestamp

10

int

时间戳在视频帧中的 X 位置(单位为像素),从左边框起算。

Position Y

Show human-readable timestamp

10

int

视频帧中时间戳的 Y 位置(单位:像素)。从上边框开始测量。

Font size

Show human-readable timestamp

10

int

视频帧中时间戳文本的字号(字母 “A” 的高度),单位为像素。

ExecuteProperty

Calls the execute() method on the property.

Parameterization

Parameter

Name

在以下情况下可用

默认值

有效值

Type

Description

prop

string

Name of the property. Get all available names with job “ListProperties”.

GetProperty

Returns a property’s value.

Parameterization

Parameter

Name

在以下情况下可用

默认值

有效值

Type

Description

prop

‘Width’

string

Name of the property. Get all available names with job “ListProperties”.

返回值

Name

在以下情况下可用

默认值

有效值

Type

Description

return

object

Returns the current value of the given property.

ListProperties

Lists all available properties for device.

Parameterization

返回值

Name

在以下情况下可用

默认值

有效值

Type

Description

return

object

List with names of all properties.

SetProperty

Sets a property’s value.

Parameterization

Parameter

Name

在以下情况下可用

默认值

有效值

Type

Description

prop

‘Width’

string

Name of the property. Get all available names with job “ListProperties”.

value

object

New value for the given property.